package com.googlecode.flealancemarket.tapestry.util;

public class Session {

    private long userId = 0;
    private boolean userIsEmployer = false;
    private String username = null;
    private String message = null;
    private boolean hasMessage = false;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public boolean getUserIsEmployer() {
        return userIsEmployer;
    }

    public void setUserIsEmployer(boolean userIsEmployer) {
        this.userIsEmployer = userIsEmployer;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getMessage() {
        this.hasMessage = false;
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
        this.hasMessage = true;
    }

    public boolean getHasMessage(){
        return hasMessage;
    }
    public void setHasMessage(boolean b){
        hasMessage = b;
    }
}
